package com.hkts.flow.feign;

import com.hkts.flow.api.flowableTo.HontRoleTo;
import com.hkts.flow.api.flowableTo.HontUserRoleTo;
import com.hkts.flow.api.flowableTo.HontUserTo;
import com.hkts.flow.manager.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
import java.util.Map;

/**
 * @ClassNameFeignInterface
 * @Description
 * @Author yck
 * @Date2020-12-07 10:58
 * @Version V1.0
 **/
@FeignClient(value="naturalgas-authentication",configuration = FeignHeadersInterceptor.class)
public interface FeignInterface {
    @GetMapping("/authentication/remoteUserInfo")
    public Map<String,Object> remoteUserInfo();
   //远程调用前台用户
    @GetMapping("/authentication/fontUserList")
    public List<HontUserTo> fontUserList();
    //远程调用前台角色
    @GetMapping("/authentication/fontRoleList")
    public List<HontRoleTo> fontRoleList();
    //group 和 用 户关联表
    @GetMapping("/authentication/hontUserRoles")
    public List<HontUserRoleTo> fontUserRoleList();

   //远程调用用户信息
   @GetMapping("/authentication/remoteUserInfo")
   public HontUserTo UserInfo();

    //远程调用用户管理部门信息
    @GetMapping("/authentication/getDepartmentIds")
    public List<String> getDepartmentIds();
    //远程调用当前用户的角色level
    @GetMapping("/authentication/performanceUserInfo")
    public Result performanceUserInfo();
}
